package com.canyou.archives.model.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 设备新增编辑模型
 *
 * @author index
 * @date 2021/12/08 15:42
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ArchivesDTO", description = "设备新增编辑模型")
public class ArchivesDTO implements Serializable {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "设备分类id")
    private Long categoryId;

    @ApiModelProperty(value = "设备编号")
    private String number;

    @ApiModelProperty(value = "设备名称")
    private String aname;

    @ApiModelProperty(value = "使用状态：0未启用，1使用中，2空闲，3维修中，4报废")
    private Integer state;

    @ApiModelProperty(value = "使用人员")
    private Long personnel;

//    @ApiModelProperty(value = "拥有组织")
//    private Long organization;

//    @ApiModelProperty(value = "拥有部门")
//    private Long department;

    @ApiModelProperty(value = "图片地址集合")
    private List<String> pictureAddress=new ArrayList<>();

    @ApiModelProperty(value = "财务状态：0未入账，1已入账")
    private Boolean financialRegistration;

    @ApiModelProperty(value = "SN码")
    private String snNumber;

    @ApiModelProperty(value = "保修政策")
    private String warrantyPolicy;

    @ApiModelProperty(value = "采购日期")
    private Date purchaseDate;

    @ApiModelProperty(value = "采购金额")
    private Double purchaseAmount;

    @ApiModelProperty(value = "采购地点")
    private String purchasePlace;

}
